package com.itheima.task.job;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * @author sjqn
 * @date 2023/10/29
 */
@Component
public class MyJob {

//    @Scheduled(fixedRate = 2000)
//    @Scheduled(cron = "*/2 * * * * ?")
    public void task(){
        System.out.println(LocalDateTime.now());
    }
}
